//
//  ZYCTeacherDineCell.m
//  ZDSC
//
//  Created by ZDTX on 2021/7/28.
//

#import "ZYCTeacherDineCell.h"
#import "ZYCTeacherDineListModel.h"
@interface ZYCTeacherDineCell ()
@property (nonatomic, strong) UILabel *titleLabel;

@end
@implementation ZYCTeacherDineCell


- (void)setTitleString:(NSString *)titleString{
    _titleString = titleString;
    _titleLabel.text = titleString;
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self.contentView addSubview:self.titleLabel];
        
        [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView).offset(20.0f);
            make.centerY.equalTo(self.contentView);
        }];

    }
    return self;
}

- (UILabel *)titleLabel {
    if (!_titleLabel) {
        _titleLabel = [UILabel LabelWithFont:kCustomFont(@"PingFangSC-Regular", 15.0f) titleColor:HEX_RGB(@"#8E8E8E") textAlignment:ZZTextAlignmentLeft];
    }
    return _titleLabel;
}



@end
